﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Create.ascx.vb" Inherits="Control_Users_Create" %>
<script language="javascript">
    function CheckValidPass() {
        if ($.trim($("#<%=txtPassword.ClientID %>").val()) == "") {
            $("#<%=txtPassword.ClientID %>").val('');
        }
    }
</script>
<div class="content_porletform">
    <div class="HeadTitle">
        <h3>
            THÊM MỚI NGƯỜI DÙNG
        </h3>
    </div>
    <div class="box_contentform">
        <div class="box_scroll_grid">
            <span class="fieldRequired">&nbsp;</span>Trường yêu cầu nhập dữ liệu
            <div class="Error">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblUsername" CssClass="TextLabel" runat="server" Text="Tên đăng nhập:" /><span
                        class="fieldRequired"></span>
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtUsername" CssClass="TextBox" runat="server" Text="" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUsername"
                        Display="None" ErrorMessage="Vui lòng nhập tên đăng nhập" SetFocusOnError="True"> </asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblPassword" CssClass="TextLabel" runat="server" Text="Mật khẩu:" /><span
                        class="fieldRequired"></span>
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtPassword" CssClass="TextBox" runat="server" Text="" TextMode="Password" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                        Display="None" ErrorMessage="Vui lòng nhập mật khẩu" SetFocusOnError="True"> </asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Vui lòng nhập mật khẩu tối thiểu 6 ký tự!"
                        Display="None" ControlToValidate="txtPassword" ValidationExpression="[0-9a-zA-Z]{6,}" />
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblFullname" CssClass="TextLabel" runat="server" Text="Họ và Tên:" /><span
                        class="fieldRequired"></span>
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtFullname" CssClass="TextBox" runat="server" Text="" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtFullname"
                        Display="None" ErrorMessage="Vui lòng nhập họ và tên!" SetFocusOnError="True"> </asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblEmail" CssClass="TextLabel" runat="server" Text="Email:" /><span
                        class="fieldRequired"></span>
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtEmail" CssClass="TextBox" runat="server" Text="" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEmail"
                        Display="None" ErrorMessage="Vui lòng nhập địa chỉ Email!" SetFocusOnError="True"> </asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Vui lòng kiểm tra lại Email"
                        ValidationExpression="^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$" ControlToValidate="txtEmail"
                        Display="None" SetFocusOnError="True">*</asp:RegularExpressionValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="Label1" CssClass="TextLabel" runat="server" Text="Huyện:" />
                    <span class="fieldRequired"></span>
                </div>
                <div class="DivTextBox">
                    <asp:DropDownList ID="lstStore" runat="server" CssClass="DropDownList" ></asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Display="None"
                        ControlToValidate="lstStore" ErrorMessage="Vui lòng chọn cửa hàng" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblRoleid" CssClass="TextLabel" runat="server" Text="Vai trò:" />
                </div>
                <div class="DivTextBox">
                    <asp:CheckBoxList runat="server" ID="chklstRole">
                        <asp:ListItem Value="1" Text="--- Chọn --- " />
                    </asp:CheckBoxList>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblIsuser" CssClass="TextLabel" runat="server" Text="Loại người dùng:" />
                    <span class="fieldRequired"></span>
                </div>
                <div class="DivTextBox">
                    <asp:DropDownList ID="ddlTypeUser" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Display="None"
                        ControlToValidate="ddlTypeUser" ErrorMessage="Vui lòng chọn loại người dùng"
                        SetFocusOnError="True">*</asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblIsactivated" CssClass="TextLabel" runat="server" Text="Kích hoạt:" />
                    <asp:CheckBox runat="server" ID="chkIsActivated" Checked="true" />
                </div>
                <div class="DivTextBox">
                    <div class="DivTextBox">
                        <asp:Button ID="btnSave" runat="server" Text=" Lưu " CssClass="btn" />
                        <input type="button" value="Hủy" class="btn" onclick="javascript: history.go(-1)" />&nbsp;
                    </div>
                </div>
                <div style="display: none">
                    <asp:HiddenField ID="hidID" Value="0" runat="server" />
                </div>
            </div>
        </div>
    </div>
</div>
